3.2.100 \(\int \frac {x^3 (c+d x^2)}{a+b x^2} \, dx\)

Optimal. Leaf size=54 \[ -\frac {a (b c-a d) \log \left (a+b x^2\right )}{2 b^3}+\frac {x^2 (b c-a d)}{2 b^2}+\frac {d x^4}{4 b} \]

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {446, 77} \begin {gather*} \frac {x^2 (b c-a d)}{2 b^2}-\frac {a (b c-a d) \log \left (a+b x^2\right )}{2 b^3}+\frac {d x^4}{4 b} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(x^3*(c + d*x^2))/(a + b*x^2),x]

[Out]

((b*c - a*d)*x^2)/(2*b^2) + (d*x^4)/(4*b) - (a*(b*c - a*d)*Log[a + b*x^2])/(2*b^3)

Rule 77

Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandIntegran
d[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && ((ILtQ[
n, 0] && ILtQ[p, 0]) || EqQ[p, 1] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1
, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))

Rule 446

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Dist[1/n, Subst[Int
[x^(Simplify[(m + 1)/n] - 1)*(a + b*x)^p*(c + d*x)^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] &&
 NeQ[b*c - a*d, 0] && IntegerQ[Simplify[(m + 1)/n]]

Rubi steps

\begin {align*} \int \frac {x^3 \left (c+d x^2\right )}{a+b x^2} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {x (c+d x)}{a+b x} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (\frac {b c-a d}{b^2}+\frac {d x}{b}+\frac {a (-b c+a d)}{b^2 (a+b x)}\right ) \, dx,x,x^2\right )\\ &=\frac {(b c-a d) x^2}{2 b^2}+\frac {d x^4}{4 b}-\frac {a (b c-a d) \log \left (a+b x^2\right )}{2 b^3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 47, normalized size = 0.87 \begin {gather*} \frac {b x^2 \left (-2 a d+2 b c+b d x^2\right )+2 a (a d-b c) \log \left (a+b x^2\right )}{4 b^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(x^3*(c + d*x^2))/(a + b*x^2),x]

[Out]

(b*x^2*(2*b*c - 2*a*d + b*d*x^2) + 2*a*(-(b*c) + a*d)*Log[a + b*x^2])/(4*b^3)

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^3 \left (c+d x^2\right )}{a+b x^2} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(x^3*(c + d*x^2))/(a + b*x^2),x]

[Out]

IntegrateAlgebraic[(x^3*(c + d*x^2))/(a + b*x^2), x]

________________________________________________________________________________________

fricas [A]  time = 0.75, size = 51, normalized size = 0.94 \begin {gather*} \frac {b^{2} d x^{4} + 2 \, {\left (b^{2} c - a b d\right )} x^{2} - 2 \, {\left (a b c - a^{2} d\right )} \log \left (b x^{2} + a\right )}{4 \, b^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(d*x^2+c)/(b*x^2+a),x, algorithm="fricas")

[Out]

1/4*(b^2*d*x^4 + 2*(b^2*c - a*b*d)*x^2 - 2*(a*b*c - a^2*d)*log(b*x^2 + a))/b^3

________________________________________________________________________________________

giac [A]  time = 0.33, size = 52, normalized size = 0.96 \begin {gather*} \frac {b d x^{4} + 2 \, b c x^{2} - 2 \, a d x^{2}}{4 \, b^{2}} - \frac {{\left (a b c - a^{2} d\right )} \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, b^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(d*x^2+c)/(b*x^2+a),x, algorithm="giac")

[Out]

1/4*(b*d*x^4 + 2*b*c*x^2 - 2*a*d*x^2)/b^2 - 1/2*(a*b*c - a^2*d)*log(abs(b*x^2 + a))/b^3

________________________________________________________________________________________

maple [A]  time = 0.00, size = 62, normalized size = 1.15 \begin {gather*} \frac {d \,x^{4}}{4 b}-\frac {a d \,x^{2}}{2 b^{2}}+\frac {c \,x^{2}}{2 b}+\frac {a^{2} d \ln \left (b \,x^{2}+a \right )}{2 b^{3}}-\frac {a c \ln \left (b \,x^{2}+a \right )}{2 b^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^3*(d*x^2+c)/(b*x^2+a),x)

[Out]

1/4*d*x^4/b-1/2/b^2*a*d*x^2+1/2/b*c*x^2+1/2*a^2/b^3*ln(b*x^2+a)*d-1/2*a/b^2*c*ln(b*x^2+a)

________________________________________________________________________________________

maxima [A]  time = 1.05, size = 50, normalized size = 0.93 \begin {gather*} \frac {b d x^{4} + 2 \, {\left (b c - a d\right )} x^{2}}{4 \, b^{2}} - \frac {{\left (a b c - a^{2} d\right )} \log \left (b x^{2} + a\right )}{2 \, b^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(d*x^2+c)/(b*x^2+a),x, algorithm="maxima")

[Out]

1/4*(b*d*x^4 + 2*(b*c - a*d)*x^2)/b^2 - 1/2*(a*b*c - a^2*d)*log(b*x^2 + a)/b^3

________________________________________________________________________________________

mupad [B]  time = 0.06, size = 52, normalized size = 0.96 \begin {gather*} x^2\,\left (\frac {c}{2\,b}-\frac {a\,d}{2\,b^2}\right )+\frac {\ln \left (b\,x^2+a\right )\,\left (a^2\,d-a\,b\,c\right )}{2\,b^3}+\frac {d\,x^4}{4\,b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^3*(c + d*x^2))/(a + b*x^2),x)

[Out]

x^2*(c/(2*b) - (a*d)/(2*b^2)) + (log(a + b*x^2)*(a^2*d - a*b*c))/(2*b^3) + (d*x^4)/(4*b)

________________________________________________________________________________________

sympy [A]  time = 0.28, size = 46, normalized size = 0.85 \begin {gather*} \frac {a \left (a d - b c\right ) \log {\left (a + b x^{2} \right )}}{2 b^{3}} + x^{2} \left (- \frac {a d}{2 b^{2}} + \frac {c}{2 b}\right ) + \frac {d x^{4}}{4 b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**3*(d*x**2+c)/(b*x**2+a),x)

[Out]

a*(a*d - b*c)*log(a + b*x**2)/(2*b**3) + x**2*(-a*d/(2*b**2) + c/(2*b)) + d*x**4/(4*b)

________________________________________________________________________________________